package com.javasm.adminapi.module.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.javasm.adminapi.module.system.dto.MenuTypeDTO;
import com.javasm.adminapi.module.system.dto.PermissionQueryDTO;
import com.javasm.adminapi.module.system.entity.Permission;
import com.javasm.adminapi.module.system.entity.Role;

import java.util.List;

/**
 * 权限表(Permission)表服务接口
 *
 * @author makejava
 * @since 2025-10-14 21:47:37
 */
public interface PermissionService extends IService<Permission> {


    List<Permission> getByRid(Long id);
    List<Permission> getlist();

    PageInfo<Permission> queryPage(PermissionQueryDTO permissionQueryDTO);

    void del(List<Long> collect);

    void add(Permission permission);

    void updatePermission(Permission permission);

    void updateStart(Permission permission);

    List<MenuTypeDTO> getMenuType(Long id);
}

